package soundwave.com.demo.test;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xu on 2017/4/16.
 */

public class Viewpager_test implements Parcelable {
    private String conntent;
    private String title;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getConntent() {
        return conntent;
    }

    public void setConntent(String conntent) {
        this.conntent = conntent;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.conntent);
        dest.writeString(this.title);
    }

    public Viewpager_test() {
    }

    protected Viewpager_test(Parcel in) {
        this.conntent = in.readString();
        this.title = in.readString();
    }

    public static final Parcelable.Creator<Viewpager_test> CREATOR = new Parcelable.Creator<Viewpager_test>() {
        @Override
        public Viewpager_test createFromParcel(Parcel source) {
            return new Viewpager_test(source);
        }

        @Override
        public Viewpager_test[] newArray(int size) {
            return new Viewpager_test[size];
        }
    };
}
